<#import "/spring.ftl" as spring/>
<#include "commonScript.ftl"/>
<script type="text/javascript">
    var formColumnSetting = [
        {
            index: "did",
            name: "did",
            value:'${did}',
            hidden:true
        }, {
            index: "recItemCode",
            name: "recItemCode",
            label: "操作项",
            type:'dropdown',
            data:[["待申领", "DOC_WAIT"],["申领中", "DOC_RECEIVING"],["已申领", "DOC_RECEIVED"],["已发送", "DOC_SEND"],["现场放行", "SCENE_RELEASE"], ["其他", "OT_REC"]],
            colspan:3,
            itemPick:function(event, ui){
                var itemCode = ui.item[1];
                var otInput = $("input[name=otherRecItem]");
                var ottr = otInput.parent().parent();
                if("OT_REC" === itemCode){
                    otInput.removeAttr("disabled");
                    ottr.show();
                }else{
                    otInput.attr("disabled");
                    ottr.hide();
                }
            }
        },
        {
            index: "otherRecItem",
            name: "otherRecItem",
            label: "其他项说明",
            colspan:3
        }, {
            index: "remark",
            name: "remark",
            label: "备注说明",
            type:'textarea',
            colspan:3
        }
    ];
</script>

